<?php
namespace soa\mp\cloudPrint\v1;

use soa\client;

class templateConfig  extends client
{
    /**
     * 服务地址
     * @var string
     */
    public $service_url = 'http://mp.kuaidihelp.com/';
    /**
     * 服务名称
     * @var string
     */
    protected $service_name = 'kuaidihelp_mp';

	public function set($info,$brand,$template_id){
		return $this->post("api/cloudPrint/cloudPrint/v1/templateConfig/set",compact('info','brand','template_id'));
	}

	public function getTemplate($info,$extra_info){
		return $this->post("api/cloudPrint/cloudPrint/v1/templateConfig/getTemplate",compact('info','extra_info'));
	}

	public function delTemplate($info,$extra_info = []){
		return $this->post("api/cloudPrint/cloudPrint/v1/templateConfig/delTemplate",compact('info','extra_info'));
	}

	public function templateList($info,$extra_info = [],$limit = [],$order_by = "create_time DESC"){
		return $this->post("api/cloudPrint/cloudPrint/v1/templateConfig/templateList",compact('info','extra_info','limit','order_by'));
	}
}